package easytalk.views;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

import common.EasyChatEnvironment;

class FriendViewContentProvider implements IStructuredContentProvider {
	public void dispose() {
	}

	public Object[] getElements(Object parent) {
		if (parent instanceof EasyChatEnvironment) {
			return ((EasyChatEnvironment) parent).getAllLocutors().toArray();
		}
		return new Object[0];
	}

	public void inputChanged(Viewer v, Object oldInput, Object newInput) {
	}

}